package com.tengju.bff.infrastructure.schedule;

import com.tengju.bff.application.wx.WxUserDepartmentRecordJobService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author: 李大仙
 * @date: 2021/11/5 11:02 上午
 */
@Component
@Slf4j
@RequiredArgsConstructor(onConstructor_ = {@Autowired})
public class WxUserDepartmentRecordJob {

    private final WxUserDepartmentRecordJobService wxUserDepartmentRecordJobService;

    @XxlJob("wxUserDepartmentRecordJob")
    public ReturnT<String> execute(String params) {
        wxUserDepartmentRecordJobService.execute();
        return ReturnT.SUCCESS;
    }
}
